﻿using Smobiler.Core;
using Smobiler.Core.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FubiManger.UI;
using DAL;

namespace FubiManger.Controls
{
    ////ToolboxItem用于控制是否添加自定义控件到工具箱，true添加，false不添加
    //[System.ComponentModel.ToolboxItem(true)]
    partial class Sendaddrcontrol : Smobiler.Core.Controls.MobileUserControl
    {
        public Sendaddrcontrol() : base()
        {
            //This call is required by the SmobilerUserControl.
            InitializeComponent();
        }

        private void button1_Press(object sender, EventArgs e)
        {
            MessageBox.Show("您是否要删除该配送地址", "删除提示", MessageBoxButtons.OKCancel, (obj, args) =>
            {
                if (args.Result == ShowResult.OK)
                {
                    merchant_addressDal.Deladdr(lblmaid.Text);
                    ((EditsendAddrForm)this.Form).Getdate();
                }
            });
        }
    }
}